/**
 * 应用类
 */
export class MainApp {
  mountElement: HTMLElement;
  props: Record<string, unknown> = {};
  constructor() {
    console.log('hello world');
  }

  mount(el: HTMLElement) {
    this.mountElement = el;
  }
}

/**
 * 创建应用实例
 * @returns 应用实例
 */
export const createApp = () => {
  return new MainApp();
};
